import {
  Config
} from "../../../utils/config.js";
import api from "../../../utils/api.js"
import * as com from "../../../utils/common.js"
const Base = new com.Base();
var app = getApp();

Page({

  /**
   * 页面的初始数据
   */
  data: {
    // 轮播图
    imgUrls: [
      '/images/01.jpg',
      '/images/02.jpg',
    ],

    // nav
    nav: [{
        icon_url: '/images/cate1.png',
        name: '分类'
      },
      {
        icon_url: '/images/cate2.png',
        name: '分类'
      },
      {
        icon_url: '/images/cate3.png',
        name: '分类'
      },
      {
        icon_url: '/images/cate4.png',
        name: '分类'
      },
      {
        icon_url: '/images/cate5.png',
        name: '分类'
      },
    ],

    // 品牌直销
    brand: [{
        id: 1,
        new_pic_url: '/images/goods2.jpg',
        name: 'asdads',
        floor_price: '123123'
      },
      {
        id: 1,
        new_pic_url: '/images/goods2.jpg',
        name: 'asdads',
        floor_price: '123123'
      },
      {
        id: 1,
        new_pic_url: '/images/goods2.jpg',
        name: 'asdads',
        floor_price: '123123'
      },
      {
        id: 1,
        new_pic_url: '/images/goods2.jpg',
        name: 'asdads',
        floor_price: '123123'
      },
    ],

    // 新品首发
    newGoods: [{
        id: 1,
        img: '/images/goods.jpg',
        name: 'aa',
        price: 12.00
      },
      {
        id: 1,
        img: '/images/goods.jpg',
        name: 'aa',
        price: 12.00
      },
      {
        id: 1,
        img: '/images/goods.jpg',
        name: 'aa',
        price: 12.00
      },
      {
        id: 1,
        img: '/images/goods.jpg',
        name: 'aa',
        price: 12.00
      },
    ],

    // 人气推荐
    hotGoods: [{
        id: 1,
        list_pic_url: '/images/03.jpg',
        name: 'aasd',
        goods_brief: '123131',
        retail_price: 12.00
      },
      {
        id: 1,
        list_pic_url: '/images/03.jpg',
        name: 'aasd',
        goods_brief: '123131',
        retail_price: 12.00
      },
      {
        id: 1,
        list_pic_url: '/images/03.jpg',
        name: 'aasd',
        goods_brief: '123131',
        retail_price: 12.00
      },
      {
        id: 1,
        list_pic_url: '/images/03.jpg',
        name: 'aasd',
        goods_brief: '123131',
        retail_price: 12.00
      },
    ],

    // 横向滚动
    topics: [{
        id: 1,
        scene_pic_url: '/images/02.jpg',
        title: 'asasd',
        price_info: 2,
        subtitle: 123
      },
      {
        id: 1,
        scene_pic_url: '/images/02.jpg',
        title: 'asasd',
        price_info: 2,
        subtitle: 123
      },
      {
        id: 1,
        scene_pic_url: '/images/02.jpg',
        title: 'asasd',
        price_info: 2,
        subtitle: 123
      },
      {
        id: 1,
        scene_pic_url: '/images/02.jpg',
        title: 'asasd',
        price_info: 2,
        subtitle: 123
      },
    ],

    // 更多好物
    floorGoods: [{
        id: 1,
        name: 'asdad',
        goodsList: [{
            id: 1,
            list_pic_url: '/images/03.jpg',
            name: 'asdasd',
            retail_price: 12.00
          },
          {
            id: 2,
            list_pic_url: '/images/03.jpg',
            name: 'asdasd',
            retail_price: 12.00
          },
          {
            id: 2,
            list_pic_url: '/images/03.jpg',
            name: 'asdasd',
            retail_price: 12.00
          },
        ]
      },
      {
        id: 2,
        name: 'asdad',
        goodsList: [{
            id: 1,
            list_pic_url: '/images/03.jpg',
            name: 'asdasd',
            retail_price: 12.00
          },
          {
            id: 2,
            list_pic_url: '/images/03.jpg',
            name: 'asdasd',
            retail_price: 12.00
          },
          {
            id: 2,
            list_pic_url: '/images/03.jpg',
            name: 'asdasd',
            retail_price: 12.00
          },
        ]
      },
    ],


  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})